package pkg;

public abstract class Sundae_Category 
{
	String label;
	double price;
	
	public Sundae_Category(String c_label, double c_price)
	{
		label = c_label;
		price = c_price;
	}
	
	public String getLabel()
	{
		return label;
	}
	
	public double getPrice()
	{
		return price;
	}
}

class Classic extends Sundae_Category
{
	private static final double  CLASSIC_PRICE = 7.50;
	
	public Classic()
	{
		super("Classic", CLASSIC_PRICE);
	}
}

class Premium extends Sundae_Category
{
	private static final double PREMIUM_PRICE = 9.50;
	
	public Premium()
	{
		super("Premium", PREMIUM_PRICE);
	}
}
